package tech.heptagram.staff.cas.mapper;


import org.apache.ibatis.annotations.Param;

import java.util.List;

import tech.heptagram.staff.cas.domain.po.RoleStaff;

/**
 * Created by yang on 2017/7/4.
 */
public interface CasRoleStaffMapper {

    int insert(RoleStaff po);

    int deleteByRoleId(@Param("roleId") Integer roleId, @Param("deletedBy") String deletedBy);

    int deleteByStaffCode(@Param("staffCode") String staffCode, @Param("deletedBy") String deletedBy);

    List<String> selectStaffCodesByRoleId(@Param("roleId") Integer roleId);

    List<String> selectStaffCodesByMenuId(Integer menuId);
}
